﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

using Com.Framework;
using Com.Framework.Data;
using Com.Library.DB.Menu;
using Com.Web.coffinegurunaru.AppLogic.Page;

namespace Com.Web.coffinegurunaru.menu
{
	public partial class drink_chocolate : WebPage
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			byte PageSize = 6;
			int PageNo1 = Request.QueryString["PageNo1"].Parse(1);
			int PageNo2 = Request.QueryString["PageNo2"].Parse(1);

			this.LeftMenuType = 303;

			ListData<MenuEntity, OutputEntity> MenuData1 = MenuModel.GetList(5, PageNo1, PageSize);
			UC_GoodsList1.MenuList = MenuData1.Record;
			UC_GoodsList1.ViewQuery = "PageNo1=" + PageNo1.ToString() + "&PageNo2=" + PageNo2.ToString();

			UC_Paging1.TotalCount = MenuData1.Output.CntTotal;
			UC_Paging1.PageName = "PageNo1";
			UC_Paging1.PageNo = PageNo1;
			UC_Paging1.PageSize = PageSize;
			UC_Paging1.Query = "PageNo2=" + PageNo2.ToString();


			ListData<MenuEntity, OutputEntity> MenuData2 = MenuModel.GetList(6, PageNo2, PageSize);
			UC_GoodsList2.MenuList = MenuData2.Record;
			UC_GoodsList2.ViewQuery = "PageNo1=" + PageNo1.ToString() + "&PageNo2=" + PageNo2.ToString();

			UC_Paging2.TotalCount = MenuData2.Output.CntTotal;
			UC_Paging2.PageName = "PageNo2";
			UC_Paging2.PageNo = PageNo2;
			UC_Paging2.PageSize = PageSize;
			UC_Paging2.Query = "PageNo1=" + PageNo1.ToString();
		}
	}
}
